import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import('@/views/layout/LayoutPage.vue'),
      redirect: '/page1',
      children: [
        { path: 'page1', component: () => import('@/views/TestPage/TestPage1.vue') },
        { path: 'page2', component: () => import('@/views/TestPage/TestPage2.vue') },
        { path: 'page3', component: () => import('@/views/TestPage/TestPage3.vue') }
      ]
    }
  ]
})

export default router
